﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace LinqToBing.Bing.Wrapper.Enums
{
    /// <summary>
    /// Enum for JSON interface, used to specify the format of the response.
    /// </summary>
    [DefaultValue(JSONResponseType.Raw)]
    public enum JSONResponseType
    {
        /// <summary>
        /// Search results are returned in pure JSON format.
        /// </summary>
        Raw,
        /// <summary>
        /// A JavaScript statement will be returned to call the callback function specified 
        /// in the JsonCallback parameter and search results will be passed in as arguments.
        /// </summary>
        Callback,
        /// <summary>
        /// A JavaScript function will be returned and the search results will be returned when the function is invoked.
        /// </summary>
        Function
    }
}
